package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
/**
 * 字典明细
 */
public class SystemDictionaryItem {
    private Long id;
    //
    private Long parentId;
    //标题
    private String title;
    //序号
    private Integer sequence;

    public String getJson(){
        Map<Object,Object> map = new HashMap<>();
        map.put("id",id);
        map.put("parentId",parentId);
        map.put("title",title);
        map.put("sequence",sequence);
        return JSON.toJSONString(map);
    }
}